package org.jeecg.modules.qyxxora.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @author chensherun on 2022/9/22.
 * @version 1.0
 */
@Data
@Accessors(chain = true)
public class ZbjkScyszbjcMxExportVo {

    /**指标名称*/
    @Excel(name = "触发指标", width = 15)
    @ApiModelProperty(value = "指标名称")
    private String zbmc;
    /**预警详情*/
    @Excel(name = "预警详情", width = 15)
    @ApiModelProperty(value = "预警详情")
    private String yjxq;
    /**预警级别(L1：红；L2：橙；L3：蓝)*/
    @Excel(name = "预警级别", width = 15, dicCode = "scys_mx_yjjb")
    @ApiModelProperty(value = "预警级别(L1：红；L2：橙；L3：蓝)")
    @Dict(dicCode = "scys_mx_yjjb")
    private String yjjb;
    /**监测结果*/
	@Excel(name = "核查结果", width = 25)
    @ApiModelProperty(value = "监测结果")
    private String zcjg;



    /**0:待核查;1:核查中; 2:完成;*/
    @Excel(name = "处理状态", width = 15, dicCode = "scys_clzt")
    @ApiModelProperty(value = "0:待核查;1:核查中; 2:完成;")
    @Dict(dicCode = "scys_clzt")
    private Integer clzt;
    /**处理结果（SS_CZYH：属实/存在隐患;SS_WFX:属实/无实质风险;BSS:不属实）*/
    @Excel(name = "处理结果", width = 15, exportConvert = true)
    @ApiModelProperty(value = "处理结果（SS_CZYH：属实/存在隐患;SS_WFX:属实/无实质风险;BSS:不属实）")
    @Dict(dicCode = "scys_cljg")
    private String cljg;
    /**处理人联系电话*/
    @Excel(name = "处理人联系电话", width = 15)
    @ApiModelProperty(value = "处理人联系电话")
    private String clrLxdh;
    /**处理人姓名*/
    @Excel(name = "处理人姓名", width = 15)
    @ApiModelProperty(value = "处理人姓名")
    private String clrXm;

    public String convertgetCljg() {
        if ("SS_CZYH".equals(cljg)) {
            return "属实/存在隐患";
        }
        if ("SS_WFX".equals(cljg)) {
            return "属实/无实质风险";
        }
        if ("BSS".equals(cljg)) {
            return "不属实";
        }
        return cljg;
    }
}
